package ambika.threads;

import java.util.ArrayList;

public class DemoOnThreads {

	static ArrayList<Threads> threads = new ArrayList(4);
	
	public static void main(String[] args){
		 Threads t1 = new Threads(3);
		Threads t2 = new Threads(10);
		Threads t3 = new Threads(4);
		Threads t4 = new Threads(15);
		threads.add(t1);
		threads.add(t2);
		threads.add(t3);
		threads.add(t4);
		
		for(Threads ts: threads){
			ts.start();
		}
		
		ThreadsRunnableInterface tr5 = new ThreadsRunnableInterface(5);
		ThreadsRunnableInterface tr6 = new ThreadsRunnableInterface(16);
		
		Thread t5 = new Thread(tr5);
		Thread t6 = new Thread(tr6);
		

		
	}
	
}
